<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>过滤选择器-可见性过滤器</title>
<script type="text/javascript" src="js/jquery-1.5.js"></script>
<script type="text/javascript">
	$(function() {
		//匹配所有的可见元素
		$("tr:visible").css("backgroundColor","lightBlue");
		//匹配所有不可见元素，或者type为hidden的元素
		alert($("tr:hidden").length);
	});
</script>
</head>
<body>
<table>
  <tr style="display:none"><td>Value 1</td></tr>
  <tr><td>Value 2</td></tr>
</table>
</body>
</html>